$(function(){
	//左侧菜单hover效果
	$(".left_message_menu").find("li").hover(function(){
		$(this).animate({
			"padding-right":"15px"
		},200).find("a").css("color","#FFFF66");
	},function(){
		$(this).animate({
			"padding-right":"0px"
		},200).find("a").css("color","#999");
	});
	$(".left_message_menu").find("li").click(function(){
		$(".left_message_menu").find("li").css("background","#4B4B4B").find("a").css("color","#999");
		$(this).css("background","#aaa").animate({
			"padding-right":"0px"
		},200).find("a").css("color","#000");
	});
	
	
	$("#delete").click(function(){
		if(index == -1){
			alert("璇烽�鎷╀竴鏉℃暟鎹紒");
			return true;
		}else{
			var meetingroomId = $(".table_tr_date").eq(index).find(".meetingroomId").text();
			$("#meetingeoomId").val(meetingroomId);
			var flag =window.confirm("浣犵‘瀹氳鍒犻櫎鍚楋紵");
			if(flag){
				location.href = "../meetingroom/delete.action?meetingroomId="+meetingroomId;
			}
			return false;
		}
	});
	/*
	$('#prevBtn').click(function(){	
		if (pageNum <= 1 ) {
			alert("已经是第一页了");
			return false;
		}
		$('#pageNum').val(pageNum - 1);
		$('#form1').submit();				
	});
	$('#nextBtn').click(function(){
		if (pageNum >= pageCount) {
			alert("后面没有了");
			return false;
		}
		$('#pageNum').val(pageNum + 1);						
		$('#form1').submit();
	});*/
});